package com.eschool.beans;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import org.primefaces.model.DualListModel;

import com.eschool.dao.CourseDao;
import com.eschool.model.Course;

@ManagedBean(name="testBean")
@SessionScoped
public class TestBean {
/*
	List source, target ;
	DualListModel<String> myStrings;
	DualListModel<String> mySelected;

	public TestBean() {
		
		source = new ArrayList<String>();
		target = new ArrayList<String>();
		
		source.add("A");
		source.add("B");
		source.add("Cs");
		
		myStrings = new DualListModel<String>(source, target);
	}

	public List getSource() {
		return source;
	}

	public void setSource(List source) {
		this.source = source;
	}

	public List getTarget() {
		return target;
	}

	public void setTarget(List target) {
		this.target = target;
	}

	public DualListModel<String> getMyStrings() {
		return myStrings;
	}

	public void setMyStrings(DualListModel<String> myStrings) {
		this.myStrings = myStrings;
	}

	public DualListModel<String> getMySelected() {
		return mySelected;
	}

	public void setMySelected(DualListModel<String> mySelected) {
		this.mySelected = mySelected;
	}
	
	

	public String action()
	{
		for (Iterator iterator = target.iterator(); iterator.hasNext();) {
			String  value = (String) iterator.next();
			System.out.print(value + "\t");
			
		}
		return "AddClass";
	}*/
}
